﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SPVisualDev.VSAddin.Dialogs
{
    public partial class DialogYesNoRepeatable : Form
    {
        public DialogYesNoRepeatable()
        {
            InitializeComponent();
            this.Activated += new EventHandler(DialogYesNoRepeatable_Activated);
        }

        private void DialogYesNoRepeatable_Activated(object sender, EventArgs e)
        {
            if (DefaultButtonSelect)
                btnYes.Focus();
            else
                btnNo.Focus();
        }

        public bool RepeatAction
        {
            get { return chkRepeat.Checked; }
            set { chkRepeat.Checked = value; }
        }

        public string CheckBoxText
        {
            get { return chkRepeat.Text; }
            set { chkRepeat.Text = value; }
        }

        public string DialogMessage
        {
            get { return lblMessage.Text; }
            set { lblMessage.Text = value; }
        }

        public bool DefaultButtonSelect
        {
            get;
            set;
        }

    }
}
